<div class="content-head">
		<div class="finder-title">
			<h2 class="head-title span-auto">产品列表<span class="num">(共<em class="count2">{$count}</em>条)</span></h2>
		</div>
		<div style="padding-right:10px;" class="gridlist-action finder-action clearfix">
			<ul class="finder-action-items flt">
				<li><a href="{:U('Product/showadd')}"><span>添加产品</span></a></li>
				<li>
				<form id='recycleProduct' action="{:U('Product/recycle')}" method='post'>
					<a href="javascript:recycleProduct()">
				<span>删除产品</span></a>
				<input type='hidden' id='values' name='values' value=''/>
				</form>
				</li>
			</ul>
			<div class="frt">
			<form class="finder-search" id='serchProduct' method='post' action="{:U('Product/search')}">
			  <table cellspacing="0" cellpadding="0">
				<tbody>
				<tr>
				  <td>
					<span class="finder-search-select"><label>产品名称</label><img src="./Public/Images/arrow-down.gif">
					</span>
				  </td>
				  <td><input type="text" placeholder="输入后直接回车确认" id='placeholder' maxlength="40" value="" size="15" class="finder-search-input f-12">
				  </td>
				  <td>
					<a href="javascript:searchProduct();" class="finder-search-btn lnk-search"><span>搜索</span></a>
				 </td>
				</tr>
			  </tbody>
			  </table>
			</form>
			</div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabstyle">
			  <tr>
				<th style='width:20px'><input type="checkbox" name="pcheckbox" id="checkbox" onclick='checkAll()'/></th>
				<th style='width:60px'>查看</th>
				<th style='width:80px'>操作</th>
				<th style='width:80px;'>产品名称</th>
				<th style='width:100px;'>产品英文代码</th>
				<th></th>
			  </tr>
			  <volist name='list' id='vo' empty='暂时没有数据！'>
			  <tr <eq name="mod" value="0">class="bgcor"</eq>>
				<td><input type="checkbox" name="checkbox_{$vo.id}" id="checkbox_{$vo.id}" value='{$vo.id}'/></td>
				<td><img src="./Public/Images/finder_drop_arrow.gif" alt="查看" width="16" height="16" /></td>
				<td><a href="{:U('Product/edit')}&id={$vo.id}">编辑</a></td>
				<td>{$vo.name}</td>
				<td>{$vo.code}</td>
				<td></td>
			  </tr>
			  </volist>
			</table>
  </div>
<script>
	function recycleProduct(){
		var proArray=new Array();
		var values=$('input:checkbox[name^=checkbox_]:checked').each(
			function (index){
				proArray.push($(this).val());
			}
		);
		if(proArray.length==0){
			alert('请选择要删除的产品！');
			return false;
		}
		$('#values').attr('value',proArray);
		$('#recycleProduct').submit();
	}
	function searchProduct(){
		if($.trim($('#placeholder').val())==''){
			alert('OK');
		}
	}
</script>

<div class="finder-footer_xu">
<div class="page_xu">
	{$page}
</div>
</div>    